package com.yuantong.xyerp.core.api.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 出入库产品清单/库存流水
 * </p>
 *
 * @author JianguoYin
 * @since 2021-08-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="WarehouseReceiptList对象", description="出入库产品清单/库存流水")
public class WarehouseReceiptList implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "36位UUID主键")
    private String id;

    @ApiModelProperty(value = "【冗余字段】仓库id（t_organization表中类型为仓库的记录id）")
    private String warehouseId;

    @ApiModelProperty(value = "【冗余字段】1-采购入库，2-生产产品入库，3-调拨入库，4、退货入库、5-销售出库，6-调拨出库，7-生产原料出库")
    private String type;

    @ApiModelProperty(value = "出入库单ID")
    private String warehouseReceiptId;

    @ApiModelProperty(value = "产品品类全编码，每两位一级（冗余字段）")
    private String categoryCode;

    @ApiModelProperty(value = "产品大品类名（冗余字段）")
    private String categoryName;

    @ApiModelProperty(value = "一级品名（冗余字段）")
    private String levelOne;

    @ApiModelProperty(value = "二级品名（冗余字段）")
    private String levelTwo;

    @ApiModelProperty(value = "三级品名（冗余字段）")
    private String levelThree;

    @ApiModelProperty(value = "物品id")
    private String goodsId;

    @ApiModelProperty(value = "物品名称（冗余字段）")
    private String goodsName;

    @ApiModelProperty(value = "批号（出库产品有批号时要校验对应批号数量，盘库时有批号的产品需要盘批号明细）")
    private String batchNo;

    @ApiModelProperty(value = "出入库重量（入为正出为负），用于核增/核销库存量")
    private BigDecimal weight;

    @ApiModelProperty(value = "出入库数量（入为正出为负），用于核增/核销库存量")
    private Integer quantity;

    @ApiModelProperty(value = "内勤确认重量，用于计算维护合同最终金额")
    private BigDecimal confirmWeight;

    @ApiModelProperty(value = "内勤确认单价，用于计算维护合同最终金额")
    private BigDecimal confirmUnitPrice;

    @ApiModelProperty(value = "内勤确认数量，用于计算维护合同最终金额")
    private Integer confirmQuantity;

    @ApiModelProperty(value = "【冗余字段】创建时间")
    private Date createTime;


}
